class Company < ActiveRecord::Base
  
  has_many :rooms
  has_many :contacts
  
  validates_presence_of     :name
  validates_presence_of     :num_siret
  validates_uniqueness_of   :num_siret
  validates_presence_of     :phone_num
  validates_length_of     	:phone_num,    :within => 0..10
  validates_presence_of     :address
  
end
